package com.mmche.web.service.impl;


import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.framework.ums.domain.User;
import com.mmche.base.dao.OnlineContentDao;
import com.mmche.base.pojo.OnlineContent;
import com.mmche.base.service.OnlineContentService;
import com.mmche.base.service.impl.OnlineContentServiceImpl;

@Service("webOnlineContentService")
public class WebOnlineContentService extends OnlineContentServiceImpl implements OnlineContentService{

	@Resource(name="webOnlineContentDao")
	private OnlineContentDao onlineContentDao;
	
	/**
	 * 通过ID过去发布内容
	 * @param id
	 * @return
	 */
	public OnlineContent getContentById(String id){
		return this.onlineContentDao.findById(id);
	}
	
	/**
	 * 修改网站点击数
	 * @param content
	 */
	@Override
	public OnlineContent updateContent(OnlineContent content, User user) {
		return this.onlineContentDao.update(content);
	}
}
